<?php


namespace apps\marriage\core\service;


use apps\marriage\core\model\SubscribeMessageTemplate;
use vm\com\BaseModel;
use vm\com\BaseService;

class SubscribeMessageTemplateService extends BaseService
{

    /**
     * @return SubscribeMessageTemplate
     */
    protected function getModel()
    {
        return new SubscribeMessageTemplate();
    }

    public function deleteEarliestTemplateIdByOpenid($openid, $templateId, $type)
    {
        return $this->getModel()->deleteEarliestTemplateIdByOpenid($openid, $templateId, $type);
    }
}